<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		
		<h3 style="text-align: center;">黑马书籍商城--牛人书店</h3>
		<p style="text-align: center;">
			欢迎尊贵的铂金会员
			<span style="color: red;">
			 	${existUser.name}
			</span> 
			<a href="${pageContext.request.contextPath}/BookServlet?method=findAll">首页</a>
			<a href="${pageContext.request.contextPath}/CartServlet?method=findAll">购物车</a>
			<a href="${pageContext.request.contextPath}/LogoutServlet">[退出登录]</a>
		</p>
		<hr />
		<form action="${pageContext.request.contextPath}/BookServlet?method=update" method="post">
			<table border="1" width="350" align="center">
				<thead>
					<tr>
						<th colspan="2">修改操作</th>
					</tr>
				</thead>
				<tbody>
					
					<tr>
						<td>
							书籍名称
						</td>
						<td>
							<input type="hidden" name="bid" value="${book.bid }" />
							<input type="text" name="bookname" value="${book.bookName }"/>
						</td>
					</tr>
					<tr>
						<td>
							作者
						</td>
						<td>
							<input type="text" name="author" value="${book.author }"/>
						</td>
					</tr>
					<tr>
						<td>
							价格
						</td>
						<td>
							<input type="text" name="price" value="${book.price}"/>
						</td>
					</tr>
					<tr>
						<td>
							备注
						</td>
						<td>
							<textarea rows="3" cols="14" name="b_desc">${book.b_desc}</textarea>
						</td>
					</tr>
					<tr>
						<td colspan="2">
							<input type="submit" value="修改"/>
						</td>	
					</tr>
				</tbody>
			</table>
		</form>
	</body>
</html>
